<template>
  <div id="app">
    <Head />
    <router-view></router-view>
    <Foot />
  </div>
</template>
<script>
import Head from "@/components/Head/Head.vue";
import Foot from "@/components/Foot/Foot.vue";
export default {
  components: {
    Head,
    Foot,
  },
  mounted() {
    //当组件挂载完就请求数据  因为home和search 都用到了typenav  避免请求两次数据 优化性能
    this.$store.dispatch("getCategoryList");
  },
};
</script>
<style lang="less">
</style>
